package com.jdkreader.annotation.db;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
/**
 * 对于数据库表的约束
 */
public @interface Constraints {

    boolean primaryKey() default false;

    boolean allowNUll() default true;

    boolean unique() default false;
}
